package oop5;

/**
 * @author oldliu
 * @since 1.0
 */
public class USBNetCard extends NetCard implements Usb,BlueBooth {
    private String brand;
    private int speed;//速度，单位是M

    public USBNetCard(String brand, int speed) {
        this.brand = brand;
        this.speed = speed;
    }

    @Override
    public void plugin() {
        System.out.println(brand+"速度是"+speed+"的网卡接上了usb口");
    }

    @Override
    public void work() {
        System.out.println(brand+"网卡准备好 发送和接受数据");
    }
    @Override
    public void send(){
        System.out.println("发送信息：10101001010111");
    }
    @Override
    public void receive(){
        System.out.println("接受信息：10101001010111");
    }
    @Override
    public void stop() {
        System.out.println(brand+"从usb口移除");
    }

    @Override
    public void connect() {
        System.out.println(brand+"网卡连上了蓝牙，准备发送和接受数据了");
    }
}
